

public class Polyndrom3 {

	public static void main(String[] args) {
		
		if ((args.length == 0)) {
			System.out.println(Bad arguments, enter correct arguments.);
			return;
		} else {
			if (args[0].length()  3) {
				System.out.println(Bad arguments, enter correct arguments.);
				return;
			}
		}
		
		String word = args[0];
		StringBuffer backWord;
		int length = word.length();

		for (int i = 0; i  length2; i++) {
			
			backWord = new StringBuffer(word);
			word = word.toLowerCase();
			if (word.contentEquals(backWord.reverse()) && word.length() = 3) {
				System.out.println(word);
				word = word.substring(1, word.length() - 1);
			}

		}

	}

}
